package org.ithang.application.operationLog.service;

import java.util.List;
import java.util.Map;
import org.ithang.application.operationLog.mapper.OperationLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;
import org.ithang.tools.model.Pager;
import org.ithang.tools.database.ModelDao;
import org.ithang.application.operationLog.bean.OperationLog;

/**
 * 操作日志 服务
 * @author zyt
 *
 */
@Service
public class OperationLogService extends ModelDao<OperationLog>{

    @Autowired
    private OperationLogMapper operationLogMapper;

    private Logger logger = Logger.getLogger(OperationLogService.class);
    
    public void add(OperationLog operationLog){
        operationLogMapper.add(operationLog);
    }
    
    public OperationLog get(Long id){
        return operationLogMapper.get(id);
    }
    
    public int delete(Long id){
        return operationLogMapper.delete(id);
    }
    
    public int batchDelete(String[] ids){
    	return operationLogMapper.batchDelete(ids);
    }
    
    public List<OperationLog> list(Long... ids){
    	return operationLogMapper.list(ids);
    }
    
    public List<OperationLog> page(Pager<OperationLog> page){
    	return operationLogMapper.page(page);
    }
    
    public List<OperationLog> query(Map<String,Object> conditions){
    	return operationLogMapper.query(conditions);
    }
    
    public int update(OperationLog operationLog){
    	return operationLogMapper.update(operationLog);
    }
    
    
}